/*
 * @Description: 
 * @Author: xiongkuobiao
 * @Date: 2023-02-28 11:09:31
 * @LastEditors: xiongkuobiao
 * @LastEditTime: 2023-04-12 10:16:12
 */
function create(proto) {
  // 创建个方法
  function F() {}
  F.prototype = proto;
  return new F();
}
function demo() {}
console.log(create(demo.prototype));
console.log(Object.create(demo.prototype));
